;; 主题文件夹
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'deep-blue t)

(setq default-frame-alist '((height . 78) (width . 188)))

;; 显示行号
(global-display-line-numbers-mode 1)

;; set font
;;(set-frame-font "Ubuntu Mono:pixelsize=20")

;; 中文与英文字体设置
;; Setting English Font
;; (set-face-attribute 'default nil :font "文泉驿等宽微米黑:pixelsize=18")
;; Chinese Font
;; (dolist (charset '(kana han symbol cjk-misc bopomofo))
;;   (set-fontset-font
;;    (frame-parameter nil 'font) charset (font-spec :family "文泉驿微米黑" :size 22)))

;; disable scroll bar
(set-scroll-bar-mode nil)

;;在标题栏显示buffer名称
(setq frame-title-format '("emacs@ " buffer-file-name " " ))

;;支持emacs和外部程序的粘贴
(setq x-select-enable-clipboard t)

;; 默认88列换行
(setq default-fill-column 88)

;; ******** column-marker ********
(require 'column-marker)
(global-set-key [?\C-c ?m] 'column-marker-2)

;; ******** modeline position ********
(require 'modeline-posn)
(column-number-mode 1)
(size-indication-mode 1)
(line-number-mode 1)

;; ******** fill-column-indicator ********
(use-package fill-column-indicator
  :ensure t)
(require 'fill-column-indicator)
(setq fci-rule-column 88)
(setq fci-rule-width 1)
(setq fci-rule-color "deep sky blue")
(add-hook 'after-change-major-mode-hook 'fci-mode)
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
(global-fci-mode 1)

;; ******** cursors ********
;;(setq-default save-place t)
;;(require 'saveplace)

(require 'cutecursor)
(cutecursor-mode t)

;; ******** auto split window ********
(setq split-height-threshold nil)
(setq split-width-threshold 1)

(provide 'init_theme)
